Hello All! |
Re: Change “Password expires after:” value for all users I actually have a program that does exactly this but I don't think I can share it; but I can strip out the guts:
int iLifetime_Desired = 90 // days
User usr
string ErrMess, NameUser
loadDirectory()
for usr in userList do
{ NameUser = usr.name
ensureUserRecordLoaded(usr)
noError()
setUser(usr, passwordLifetime, iLifetime_Desired)
ErrMess = lastError()
if (!null ErrMess) //
then warningBox("Error setting Password Lifetime for '" NameUser "':\n" ErrMess)
else saveUserRecord(usr)
} // end for users in the database
|
Re: Change “Password expires after:” value for all users llandale - Thu Apr 07 11:28:50 EDT 2011 I actually have a program that does exactly this but I don't think I can share it; but I can strip out the guts:
int iLifetime_Desired = 90 // days
User usr
string ErrMess, NameUser
loadDirectory()
for usr in userList do
{ NameUser = usr.name
ensureUserRecordLoaded(usr)
noError()
setUser(usr, passwordLifetime, iLifetime_Desired)
ErrMess = lastError()
if (!null ErrMess) //
then warningBox("Error setting Password Lifetime for '" NameUser "':\n" ErrMess)
else saveUserRecord(usr)
} // end for users in the database
you made my day! Thank you very much! Your script works fine and saved me from a lot of monotonous work. Regards, Frank |